package com.foreverwin.mes.production.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author syngna
 * @since 2018-12-03
 */
@TableName("Z_STATION_RESOURCE")
public class StationResource extends Model<StationResource> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "HANDLE", type = IdType.INPUT)
    private String handle;
    /**
     * 岗位
     */
    @TableField("STATION_BO")
    private String stationBo;
    @TableField(exist = false)
    private String station;
    /**
     * 资源
     */
    @TableField("RESOURCE_BO")
    private String resourceBo;
    @TableField(exist = false)
    private String resrce;
    /**
     * 创建用户
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 创建时间
     */
    @TableField("CREATED_DATE_TIME")
    private Date createdDateTime;
    /**
     * 修改用户
     */
    @TableField("MODIFY_USER")
    private String modifyUser;
    /**
     * 修改时间
     */
    @TableField("MODIFIED_DATE_TIME")
    @Version
    private Date modifiedDateTime;


    public String getHandle() {
        return handle;
    }

    public void setHandle(String handle) {
        this.handle = handle;
    }

    public String getStationBo() {
        return stationBo;
    }

    public void setStationBo(String stationBo) {
        this.stationBo = stationBo;
    }

    public String getResourceBo() {
        return resourceBo;
    }

    public void setResourceBo(String resourceBo) {
        this.resourceBo = resourceBo;
    }

    public String getStation() {
        return station;
    }

    public void setStation(String station) {
        this.station = station;
    }

    public String getResrce() {
        return resrce;
    }

    public void setResrce(String resrce) {
        this.resrce = resrce;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreatedDateTime() {
        return createdDateTime;
    }

    public void setCreatedDateTime(Date createdDateTime) {
        this.createdDateTime = createdDateTime;
    }

    public String getModifyUser() {
        return modifyUser;
    }

    public void setModifyUser(String modifyUser) {
        this.modifyUser = modifyUser;
    }

    public Date getModifiedDateTime() {
        return modifiedDateTime;
    }

    public void setModifiedDateTime(Date modifiedDateTime) {
        this.modifiedDateTime = modifiedDateTime;
    }

    public static final String HANDLE = "HANDLE";

    public static final String STATION_BO = "STATION_BO";

    public static final String RESOURCE_BO = "RESOURCE_BO";

    public static final String CREATE_USER = "CREATE_USER";

    public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

    public static final String MODIFY_USER = "MODIFY_USER";

    public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

    @Override
    protected Serializable pkVal() {
        return this.handle;
    }

    @Override
    public String toString() {
        return "StationResource{" +
                "handle = " + handle +
                ", stationBo = " + stationBo +
                ", resourceBo = " + resourceBo +
                ", createUser = " + createUser +
                ", createdDateTime = " + createdDateTime +
                ", modifyUser = " + modifyUser +
                ", modifiedDateTime = " + modifiedDateTime +
                "}";
    }
}